home *** CD-ROM | disk | FTP | other *** search
/ Hackers Matrix / Hacker's Matrix (nCite Software) (2003).iso / Tutorials / hTut_0011.txt < prev    next >
Text File  |  2002-12-13  |  19KB  |  331 lines

  1.             --------------hacking the bios-------------- 
  2.                           by anand bhaskar.
  3. hey friends,
  4. i know hacking with bios is considered lame by the hackers n it indeed 
  5. is lame but i m sure this gives a good practice at the intial stages n
  6. some idea of what the hell it like getting into someone else's computer.
  7. the basic limitation of this method is that only shared files can b 
  8. accessed.however there r ways to hack the not shared one's too but 
  9. is all i wish too provide u all now.enjoy.
  10.  
  11. introduction
  12.  
  13. 1. Hardware and Firmware
  14.  
  15. 1a. The BIOS
  16.  
  17. The BIOS, short for Basic Input/Output Services, is the control 
  18. program of the PC. It is responsible for starting up your computer, 
  19. transferring control of the system to your operating system, and 
  20. for handling other low-level functions, such as disk access.
  21.  
  22. NOTE that the BIOS is not a software program, insofar as it is
  23. not purged from memory when you turn off the computer. It's 
  24. firmware, which is basically software on a chip. :)
  25.  
  26. A convenient little feature that most BIOS manufacturers include
  27. is a startup password. This prevents access to the system until
  28. you enter the correct password.
  29.  
  30. If you can get access to the system after the password has been
  31. entered, then there are numerous software-based BIOS password 
  32. extractors available from your local H/P/A/V site. :)
  33.  
  34.                             
  35.         NETBIOS/NBTSTAT - What does it do? 
  36.  
  37. 2. NETBIOS, also known as NBTSTAT is a program run on the Windows system and is used for identifying a remote network or computer for file sharing enabled. We can expoit systems using this method. It may be old but on home pc's sometimes it still works great. You can use it on your friend at home or something. I don't care what you do, but remember, that you are reading this document because you want to learn. So I am going to teach you. Ok. So, you ask, "How do i get to NBTSTAT?" Well, there are two ways, but one's faster.
  38.  
  39. Method 1
  40. -===============-
  41. Start
  42. Programs 
  43. MSDOS PROMPT 
  44. Type NBTSTAT 
  45. -===============-
  46.  
  47. Method 2
  48. -===============-
  49. Start 
  50. Run 
  51. Type Command
  52. Type NBTSTAT
  53. -===============-
  54.  
  55. (Note: Please, help your poor soul if that isn't like feeding you with a baby spoon.)
  56.  
  57. Ok! Now since you're in the DOS command under NBTSTAT, you're probably wondering what all that crap is that's on your screen. These are the commands you may use. I'm only going to give you what you need to know since you are striving to be l33t. Your screen should look like the following:
  58.  
  59.  
  60. ----------------------------------------------------------------------------------------------
  61.  
  62. NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n]
  63.        [-r] [-R] [-RR] [-s] [-S] [interval] ]
  64.  
  65.  -a   (adapter status) Lists the remote machine's name table given its name
  66.  -A   (Adapter status) Lists the remote machine's name table given its
  67.                        IP address.
  68.  -c   (cache)          Lists NBT's cache of remote [machine] names and their IP
  69. addresses
  70.  -n   (names)          Lists local NetBIOS names.
  71.  -r   (resolved)       Lists names resolved by broadcast and via WINS
  72.  -R   (Reload)         Purges and reloads the remote cache name table
  73.  -S   (Sessions)       Lists sessions table with the destination IP addresses
  74.  -s   (sessions)       Lists sessions table converting destination IP
  75.                        addresses to computer NETBIOS names.
  76.  -RR  (ReleaseRefresh) Sends Name Release packets to WINS and then, starts Refr
  77. esh
  78.  
  79.  RemoteName   Remote host machine name.
  80.  IP address   Dotted decimal representation of the IP address.
  81.  interval     Redisplays selected statistics, pausing interval seconds
  82.               between each display. Press Ctrl+C to stop redisplaying
  83.               statistics.
  84.  
  85.  
  86. C:\WINDOWS\DESKTOP>
  87.  
  88. -----------------------------------------------------------------------------------------------
  89.  
  90. The only two commands that are going to be used and here they are:
  91.  
  92. -a   (adapter status) Lists the remote machine's name table given its name
  93. -A   (Adapter status) Lists the remote machine's name table given its IP address.
  94.  
  95.     Host Names
  96.  
  97. 3. Now, the -a means that you will type in the HOST NAME of the person's computer that you are trying to access. Just in case you don't have any idea what a Host Name looks like here's an example.
  98.  
  99. 123-fgh-ppp.internet.com
  100.  
  101. there are many variations of these adresses. For each different address you see there is a new ISP assigned to that computer. look at the difference.
  102.  
  103. abc-123.internet.com
  104. ghj-789.newnet.com
  105.  
  106. these are differnet host names as you can see, and, by identifying the last couple words you will be able to tell that these are two computers on two different ISPs. Now, here are two host names on the same ISP but a different located server.
  107.  
  108. 123-fgh-ppp.internet.com
  109. 567-cde-ppp.internet.com
  110.  
  111.     IP Addresses
  112.  
  113. 4. You can resolce these host names if you want to the IP address (Internet Protocol)
  114. IP addresses range in different numbers. An IP looks like this:
  115.  
  116. 201.123.101.123
  117.  
  118. Most times you can tell if a computer is running on a cable connection because of the IP address's numbers. On faster connections, usually the first two numbers are low. here's a cable connection IP.
  119.  
  120. 24.18.18.10
  121.  
  122. on dialup connections IP's are higher, like this:
  123.  
  124. 208.148.255.255
  125.  
  126. notice the 208 is higher than the 24 which is the cable connection.
  127.  
  128. REMEMBER THOUGH, NOT ALL IP ADDRESSES WILL BE LIKE THIS.
  129. Some companies make IP addresses like this to fool the hacker into believing it's a dialup, as a hacker would expect something big, like a T3 or an OC-18. Anyway This gives you an idea on IP addresses which you will be using on the nbtstat command.
  130.  
  131.      Getting The IP Through DC (Direct Connection)
  132.  
  133. 5. First. You're going to need to find his IP or host name. Either will work. If you are on mIRC You can get it by typing /whois (nick) ...where (nick) is the persons nickname without parenthesis. you will either get a host name or an IP. copy it down. If you do not get it or you are not using mIRC then you must direct connect to their computer or you may use a sniffer to figure out his IP or host name. It's actually better to do it without the sniffer because most sniffers do not work now-a-days. So you want to establish a direct connection to their computer. OK, what is a direct connection? When you are:
  134.  
  135. Sending a file to their computer you are directly connected.
  136. AOL INSTANT MESSENGER allows a Direct Connection to the user if accepted.
  137. ICQ when sending a file or a chat request acception allows a direct connection.
  138. Any time you are sending a file. You are directly connected. (Assuming you know the user is not using a proxy server.)
  139. Voice Chatting on Yahoo establishes a direct connection.
  140.  
  141. If you have none of these programs, either i suggest you get one, get a sniffer, or read this next statement.
  142.  
  143. If you have any way of sending thema link to your site that enables site traffic statistics, and you can log in, send a link to your site, then check the stats and get the IP of the last visitor. It's a simple and easy method i use. It even fool some smarter hackers, because it catches them off guard. Anyway, once you are directly connected use either of the two methods i showed you earlier and get into DOS. Type NETSTAT -n. NETSTAT is a program that's name is short for NET STATISTICS. It will show you all computers connected to yours. (This is also helpful if you think you are being hacked by a trojan horse and is on a port that you know such as Sub Seven: 27374.) Your screen should look like this showing the connections to your computer:
  144.  
  145. ------------------------------------------------------------------------------------------------
  146.  
  147. C:\WINDOWS\DESKTOP>netstat -n
  148.  
  149. Active Connections
  150.  
  151.  Proto  Local Address          Foreign Address        State
  152.  TCP    172.255.255.82:1027    205.188.68.46:13784    ESTABLISHED
  153.  TCP    172.255.255.82:1036    205.188.44.3:5190      ESTABLISHED
  154.  TCP    172.255.255.82:1621    24.131.30.75:66        CLOSE_WAIT
  155.  TCP    172.255.255.82:1413    205.188.8.7:26778      ESTABLISHED
  156.  TCP    172.255.255.82:1483    64.4.13.209:1863       ESTABLISHED
  157.  
  158. C:\WINDOWS\DESKTOP>
  159.  
  160. ------------------------------------------------------------------------------------------------
  161.  
  162. The first line indicated the Protocol (language) that is being used by the two computers.
  163. TCP (Transfer Control Protocol) is being used in this and is most widely used.
  164.  
  165. Local address shows your IP address, or the IP address of the system you on.
  166.  
  167. Foreign address shows the address of the computer connected to yours.
  168.  
  169. State tells you what kind of connection is being made ESTABLISHED - means it will stay connected to you as long as you are on the program or as long as the computer is allowing or is needing the other computers connection to it. CLOSE_WAIT means the connection closes at times and waits until it is needed or you resume connection to be made again. One that isn't on the list is TIME_WAIT which means it is timed. Most Ads that run on AOL are using TIME_WAIT states.
  170.  
  171. the way you know the person is directly connected to your computer is because of this:
  172.  
  173. ------------------------------------------------------------------------------------------------
  174.  
  175. C:\WINDOWS\DESKTOP>netstat -n
  176.  
  177. Active Connections
  178.  
  179.  Proto  Local Address          Foreign Address        State
  180.  TCP    172.255.255.82:1027    205.188.68.46:13784    ESTABLISHED
  181.  TCP    172.255.255.82:1036    205.188.44.3:5190      ESTABLISHED
  182.  TCP    172.255.255.82:1621    24.131.30.75:66        CLOSE_WAIT
  183.  TCP    172.255.255.82:1413    abc-123-ppp.webnet.com ESTABLISHED
  184.  TCP    172.255.255.82:1483    64.4.13.209:1863       ESTABLISHED
  185.  
  186. C:\WINDOWS\DESKTOP>
  187.  
  188. ------------------------------------------------------------------------------------------------
  189.  
  190. Notice the host name is included in the fourth line instead of the IP address on all. This is almost ALWAYS, the other computer that is connected to you. So here, now, you have the host name:
  191.  
  192. abc-123-ppp.webnet.com
  193.  
  194. If the host name is not listed and the IP is then it NO PROBLEM because either one works exactly the same. I am using abc-123-ppp.webnet.com host name as an example. Ok so now you have the IP and/or host name of the remote system you want to connect to. Time to hack!
  195.  
  196. Open up your DOS command. Open up NBTSTAT by typing NBTSTAT. Ok, there's the crap again. Well, now time to try out what you have leanred from this document by testing it on the IP and/or host name of the remote system. Here's the only thing you'll need to know.
  197.  
  198. IMPORTANT, READ NOW!!!
  199.  
  200. -a   (adapter status) Lists the remote machine's name table given its name
  201. -A   (Adapter status) Lists the remote machine's name table given its IP address.
  202.  
  203. Remember this?
  204. Time to use it.
  205.  
  206. -a will be the host name 
  207. -A will be the IP
  208.  
  209. How do i know this?
  210. Read the Statements following the -a -A commands. It tells you there what each command takes.
  211.  
  212. So have you found which one you have to use?
  213.  
  214. GOOD!
  215. Time to start.
  216.  
  217. Using it to your advantage
  218.  
  219. 6. Type this if you have the host name only.
  220. NBTSTAT -a (In here put in hostname without parenthesis)
  221.  
  222. Type this is you have the IP address only.
  223. NBTSTAT -A (In here put in IP address without parenthesis)
  224.  
  225. Now, hit enter and wait. Now Either one of two things came up
  226. 1. Host not found
  227. 2. Something that looks like this:
  228.  
  229. --------------------------------------------
  230.  
  231.                NetBIOS Local Name Table
  232.  
  233.       Name               Type         Status
  234.    ---------------------------------------------
  235.    GMVPS01        <00>  UNIQUE      Registered
  236.    WORKGROUP      <00>  GROUP       Registered
  237.    GMVPS01        <03>  UNIQUE      Registered
  238.    GMVPS01        <20>  UNIQUE      Registered
  239.    WORKGROUP      <1E>  GROUP       Registered
  240.  
  241. ---------------------------------------------
  242.  
  243. If the computer responded "Host not found" Then either one of two things are the case:
  244.  
  245. 1. You screwed up the host name.
  246. 2. The host is not hackable.
  247. If number one is the case you're in great luck. If two, This system isn't hackable using the NBTSTAT command. So try another system.
  248.  
  249. If you got the table as above to come up, look at it carefully as i describe to you each part and its purpose.
  250.  
  251. Name - states the share name of that certain part of the computer
  252.  
  253. <00>, <03>, <20>, <1E> - Are the Hexidecimal codes giving you the services available on that share name.
  254.  
  255. Type - Is self-explanatory. It's either turned on, or activated by you, or always on.
  256.  
  257. Status - Simply states that the share name is working and is activated.
  258.  
  259.  
  260. Look above and look for the following line:
  261.  
  262. GMVPS01        <20>  UNIQUE      Registered
  263.  
  264. See it?
  265. GOOD! Now this is important so listen up. The Hexidecimanl code of <20> means that file sharing is enabled on the share name that is on that line with the hex number. So that means GMVPS01 has file sharing enabled. So now you want to hack this. Here's How to do it. (This is the hard part)
  266.  
  267. LMHOST File
  268.  
  269. 7. There is a file in all Windows systems called LMHOST.sam. We need to simply add the IP into the LMHOST file because LMHOST basically acts as a network, automatically logging you on to it. So go to Start, Find, FIles or Folders. Type in LMHOST and hit enter. when it comes up open it using a text program such as wordpad, but make sure you do not leave the checkmark to "always open files with this extension" on that. Simply go through the LMHOST file until you see the part:
  270.  
  271.  
  272.  
  273. # This file is compatible with Microsoft LAN Manager 2.x TCP/IP lmhosts
  274. # files and offers the following extensions:
  275. #
  276. #      #PRE
  277. #      #DOM:
  278. #      #INCLUDE 
  279. #      #BEGIN_ALTERNATE
  280. #      #END_ALTERNATE
  281. #      \0xnn (non-printing character support)
  282. #
  283. # Following any entry in the file with the characters "#PRE" will cause
  284. # the entry to be preloaded into the name cache. By default, entries are
  285. # not preloaded, but are parsed only after dynamic name resolution fails.
  286. #
  287. # Following an entry with the "#DOM:" tag will associate the
  288. # entry with the domain specified by . This affects how the
  289. # browser and logon services behave in TCP/IP environments. To preload
  290. # the host name associated with #DOM entry, it is necessary to also add a
  291. # #PRE to the line. The is always preloaded although it will not
  292. # be shown when the name cache is viewed.
  293. #
  294. # Specifying "#INCLUDE " will force the RFC NetBIOS (NBT)
  295. # software to seek the specified and parse it as if it were
  296. # local. is generally a UNC-based name, allowing a
  297. # centralized lmhosts file to be maintained on a server.
  298. # It is ALWAYS necessary to provide a mapping for the IP address of the
  299. # server prior to the #INCLUDE. This mapping must use the #PRE directive.
  300. # In addtion the share "public" in the example below must be in the
  301. # LanManServer list of "NullSessionShares" in order for client machines to
  302. # be able to read the lmhosts file successfully. This key is under
  303. # \machine\system\currentcontrolset\services\lanmanserver\parameters\nullsessionshares
  304. # in the registry. Simply add "public" to the list found there.
  305. #
  306. # The #BEGIN_ and #END_ALTERNATE keywords allow multiple #INCLUDE
  307. # statements to be grouped together. Any single successful include
  308. # will cause the group to succeed.
  309. #
  310. # Finally, non-printing characters can be embedded in mappings by
  311. # first surrounding the NetBIOS name in quotations, then using the
  312. # \0xnn notation to specify a hex value for a non-printing character.
  313.  
  314. Read this over and over until you understand the way you want your connection to be set. Here's an example of how to add an IP the way I would do it:
  315.  
  316.  
  317. #PRE #DOM:255.102.255.102 #INCLUDE 
  318.  
  319. Pre will preload the connection as soon as you log on to the net. DOM is the domain or IP address of the host you are connecting to. INCLUDE will automaticall set you to that file path. In this case as soon as I log on to the net I will get access to 255.102.255.102 on the C:/ drive. The only problem with this is that by doin the NETSTAT command while you are connected, and get the IP of your machine. That's why it only works on simple PC machines. Because people in these days are computer illiterate and have no idea of what these commands can do. They have no idea what NETSTAT is, so you can use that to your advantage. Most PC systems are kind of hard to hack using this method now because they are more secure and can tell when another system is trying to gain access. Also, besure that you (somehow) know whether they are running a firewall or not because it will block the connection to their computer. Most home systems aren't running a firewall, and to make it better, they don't know how operate the firewall, therefore, leaving the hole in the system. To help you out some, it would be a great idea to pick up on some programming languages to show you how the computer reads information and learn some things on TCP/IP (Transfer Control Protocol/Internet Protocol) If you want to find out whether they are running a firewall, simply hop on a Proxy and do a port scan on their IP. You will notice if they are running a firewall because most ports are closed. Either way, you still have a better chance of hacking a home system than hacking Microsoft.
  320.  
  321. Gaining Access
  322. 7. Once you have added this to you LMHOST file. You are basically done. All you need to do is go to:
  323.  
  324. Start
  325. Find
  326. Computer
  327.  
  328. Once you get there you simply type the IP address or the host name of the system. When it comes up, simply double click it, and boom! There's a GUI for you so you don't have to use DOS anymore. You can use DOS to do it, but it's more simple and fun this way, so that's the only way i put it. When you open the system you can edit, delete, rename, do anything to any file you wish. I would also delete the command file in C:/ because they may use it if they think someone is in their computer. Or simply delete the shortcut to it. Then here's when the programming comes in handy. Instead of using the NBTSTAT method all the time, you can then program you own trojan on your OWN port number and upload it to the system. Then you will have easier access and you will also have a better GUI, with more features. DO NOT allow more than one connection to the system unless they are on a faster connection. If you are downloading something from their computer and they don't know it and their connection is being slow, they may check their NETSTAT to see what is connected, which will show your IP and make them suspicious. Thats it. All there is to it. Now go out and scan a network or something and find a computer with port 21 or something open.
  329.  
  330. --thanx--
  331. ibhaskar@fuckmicrosoft.com